<br/>
<center><div class="Estilo3">Eliminar Compromiso</div></center>
<table width="672" border="0">

<% if @hay_id != "No" %>

  <tr>
    <td height="109" align="center" valign="bottom" class="Estilo2">¿Est&aacute; seguro que desea eliminar el compromiso <% @compromiso_a_eliminar.nombre %>?</td>
  </tr>
  <tr>
    <td>
      <table width="500" border="0" align="center">
        <tr>
          <td width="250"><form id="form1" name="form1" method="get" action="/eliminar_compromiso/resultado"><input type="hidden" name="id_compromiso" id="id_compromiso" value="<%=@hay_id%>"/><input type="submit" class="botonSombraCompromiso" name="eliminar" id="eliminar" value="Si" /> </form></td>
          <td width="250"><form id="form2" method="get" action="/index.html"><input type="submit" class="botonSombraCompromiso" name="eliminar" id="eliminar" value="No" /></form> </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>

<% elsif @compromisos.empty? %>
  
  <tr>
    <td height="109" align="center" valign="bottom" class="Estilo2">No existe ningun compromiso</td>
  </tr>

<%else%>
  
  <tr>
    <td height="109" align="center" valign="bottom" class="Estilo2">Seleccionar el compromiso que desea eliminar:</td>
  </tr>
  <tr>
    <td>
      <form id="form1" name="form1" method="get" action="/eliminar_compromiso/resultado">
        <table width="500" border="0" align="center">
          <tr>
            <td width="150" height="69" align="center" class="Estilo1"> Compromiso:</td>
            <td><label for="id_compromiso"></label>
              <select name="id_compromiso" id="id_compromiso">

  <% @compromisos.each do |compromiso| %>
                
                <option value="<%= compromiso.id %>"><%=  compromiso.nombre %></option>

  <% end %>
              
              </select>
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center"><input type="submit" class="botonSombraCompromiso" name="eliminar" id="eliminar" value="Eliminar" /></td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
<%end%>
</table>

        